package com.gitee.wsl.collections.delegate


/**
 * Iterable type that delegates to another implementation.
 *
 * @param <T>
 * Iterable item type.
 *
 * @author Matt Coley
</T> */
open class DelegatingIterable<T>(
    protected open val delegate: Iterable<T>
) : Iterable<T> {
    override fun iterator(): Iterator<T> {
        return delegate.iterator()
    }
}

open class DelegatingMutableIterable<T>(
    protected open val delegate: MutableIterable<T>
) : MutableIterable<T> by delegate

